 const timeDifference =(targetDate)=> {
  const now = new Date();
  const time = new Date(targetDate)
  const difference = time.getTime() - now.getTime();

  const days = Math.floor(difference / (1000 * 60 * 60 * 24));
  const hours = Math.floor((difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
  const seconds = Math.floor((difference % (1000 * 60)) / 1000);

  return hours + '小时' + minutes + '分';

}
export default timeDifference;